package com.test.beanconfig.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource(value = "classpath:people.yml")
@ConfigurationProperties(prefix = "people")
public class People {
    private int id;
    private String name;
    private int age;
    private boolean isAlive;
    private String otherMsg;
}
